import request from "@/utils/request";

class ExportsAPI {
  /*     获取列表     */
  static getList (params) {
    return request({
      url: "/api/admin/exports",
      method: "GET",
      params
    });
  }
  /*     获取    */
  static get (id) {
    return request({
      url: `/api/admin/exports/${id}`,
      method: "GET",
    });
  }
  /*     获取    */
  static add (data) {
    return request({
      url: `/api/admin/exports`,
      method: "POST",
      data
    });
  }
  /*     删除单个    */
  static del (data) {
    return request({
      url: `/api/admin/exports/${data.id}`,
      method: "DELETE",
    });
  }
  /*     批量删除     */
  static dels (data) {
    return request({
      url: `/api/admin/exports-destroy-many`,
      method: "DELETE",
      data
    });
  }
  // ...
}

export default ExportsAPI;